
import { categoryItem } from '../models/categoryModal';
import instance from '../utils/request';

interface data<T> {
	status: number;
	msg: string;
	data: T;
}

export const getCategorListyApi = (): Promise<categoryItem[]> => {
	return instance.get('/category/list');
};